<form action="" th:action="@{/logout}" method="post" class="ajaxform" xmlns:th="http://www.thymeleaf.org">
    <p><span th:utext="${#authentication.name}">username</span>,您即将退出本网站</p>
</form>